package com.ss.demo.springbootdemo.controller;

import com.ss.demo.springbootdemo.annotation.PermissionVerfiy;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者: MrZhangJR
 * 时间: 2021/11/3 11:22
 * 描述:
 */
@RestController
@RequestMapping("/pay")
public class PayController {
    @RequestMapping("/aliPay")
    @PermissionVerfiy("zjr")
    public Object aliPay(String orderId) {
        System.out.println("阿里支付中...");
        return "failed";
    }

    @RequestMapping("/wxPay")
    @PermissionVerfiy("zjr")
    public Object wxPay(String orderId) {
        System.out.println("微信支付中...");
        return null;
    }
}
